Skip to content

gh-141004: Document Py_ARRAY_LENGTH macro#141598

Closed
Yashp002 wants to merge 3 commits intopython:mainfrom
Yashp002:master
Closed

gh-141004: Document Py_ARRAY_LENGTH macro#141598
Yashp002 wants to merge 3 commits intopython:mainfrom
Yashp002:master

Conversation

@Yashp002
Copy link
Contributor

@Yashp002 Yashp002 commented Nov 15, 2025

Fixes part of #141004

Added documentation for the Py_ARRAY_LENGTH macro in Doc/c-api/structures.rst. This macro computes the length of a statically allocated C array at compile time.

The documentation includes:

  • Description of the macro's purpose
  • Explanation of what it works with (static arrays only)
  • Warning about pointer incompatibility
  • Code definition

📚 Documentation preview 📚: https://cpython-previews--141598.org.readthedocs.build/

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants